#!/bin/sh
# A simple shell script to set up dmalloc, a program that checks memory leaks.
# Set dmalloc default checking to memleak and heap level with every 10 run.
# Check even if no code information is found.
# Logs are created as /var/log/dmalloc.log.pid
# Run as source dmalloc_env
# amitc@brocade.com 01/09/2002

function dmalloc { eval `command dmalloc -b $*`; }
dmalloc -l /var/log/dmalloc.log.%d -i 10 -p log-unknown memleak

